

import type { Iuserbrokeragerecord } from './entity';
import type { IPageParams } from '@/types/table'
import request from '@/api/request'

export function getPageList(params: IPageParams) {
  return request({
    url: '/admin/finance/founds/monitor/brokerage/record',
    method: 'get',
    params,
    loading: true
  })
}

export function userbrokeragerecordDel(data) {
  return request({
    url: `admin/userbrokeragerecord/delete`,
    method: 'post',
    data
  })
}
export function userbrokeragerecordinfo(id) {
  return request({
    url: `admin/userbrokeragerecord/info/${id}`,
    method: 'get'
  })
}
export function userbrokeragerecordSelect(id) {
  return request({
    url: `admin/userbrokeragerecord/select`,
    method: 'get'
  })
}

export function userbrokeragerecordAddup(data) {
  return request({
    url: `admin/userbrokeragerecord/${!data.id ? 'save' : 'update'}`,
    method: 'post',
    data
  })
}
